﻿namespace SupportSystemUI.Controls.Pages
{
    using System.Windows.Controls;

    /// <summary>
    /// Interaction logic for BasePage.xaml
    /// </summary>
    public partial class BasePage : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="BasePage"/> class.
        /// </summary>
        /// <param name="data">Data to populate the page with.</param>
        /// <param name="quote">Quote to populate the page with.</param>
        public BasePage(PageData data, string quote)
        {
            this.InitializeComponent();

            this.pageTitle.Content = data.Title;
            Global.Instance.PagesScreen.PageQuote.Content = quote;
            this.contentArea.Content = data.Content;
        }
    }
}
